<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>{$coursename}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<load href="__JS__/menu.js" />
		<load href="__JS__/leftmenubar.js" />
		<link rel="stylesheet" href="__JS__/kindeditor/themes/default/default.css" />
		<link rel="stylesheet" href="__JS__/kindeditor/plugins/code/prettify.css" />
		<script charset="utf-8" src="__JS__/kindeditor/kindeditor.js"></script>
		<script charset="utf-8" src="__JS__/kindeditor/lang/zh_CN.js"></script>
		<script charset="utf-8" src="__JS__/kindeditor/plugins/code/prettify.js"></script> 
		<script>
			KindEditor.ready(function(K) {
				var editor1 = K.create('textarea[name="text"]', {
					cssPath : '__JS__/kindeditor/plugins/code/prettify.css',
					uploadJson : '__JS__/kindeditor/php/upload_json.php?no={$no}',
					fileManagerJson : '__JS__/kindeditor/php/file_manager_json.php?no={$no}',
					allowFileManager : true,
					afterCreate : function() {
						var self = this;
						K.ctrl(document, 13, function() {
							self.sync();
							K('form[name=discuss]')[0].submit();
						});
						K.ctrl(self.edit.doc, 13, function() {
							self.sync();
							K('form[name=discuss]')[0].submit();
						});
					}
				});
				prettyPrint();
			});
		</script>
		<load href= "__JS__/jshelper.js" /> 
		<script type="text/JavaScript">
			function discussdelete(id,courseid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/discussdelete');
					postwith('__URL__/discussdelete',{id:id,courseid:courseid});
				}
			}
		
					window.onload=show;
		
		</script>
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
		<script type="text/JavaScript">
        $(function(){
            $('#form1').ajaxForm({
                //beforeSubmit:  function(){alert("before");},  // pre-submit callback
                success:       complete,  // post-submit callback
                error:function(){alert("error");},
                dataType: 'json'
            });
            
            function complete(data){
                if (data.status==1)
                {
                	window.location=window.location.href;
                }else{
                    $('#result').html(data.info).show();
                }
            }
        });
        </script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>课程展示</title>
</head>
<body>
<layout name="Auth:header" />
 <div class="container-fluid">
    <div class="row-fluid">
      <layout name="Auth:Courseleftmenu" />
		<div class="span8">
          <div class="hero-unitforself">
          	<h3>{$coursename}课程展示</h3>
            <p style="font-size:12px"> 当前位置：
                <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                <a href='__URL__/index' class="nowpositionhref">院系展示</a>>
                <a href='__URL__/custom1/id/{$departmentid}' class="nowpositionhref">{$dname}</a>>
                <a href='__URL__/department/id/{$courseid}' class="nowpositionhref">课程展示</a>>
                <a href='__URL__/course/id/{$courseid}' class="nowpositionhref">{$coursename}</a>
			</p>
           </div>
          		
            <div class="hero-unit" >
                <volist name='a' id='vo' >
                      <table style="width:100%; text-align:center">
                        <tr>
                            <td style="text-align:center; width:100%;"><h2>{$vo.topic}</h2></td>
                        </tr>
                      </table>
                      <hr style="width:100%" />
                        <table>
                            <tr>
                                <td class="span4">
                                    作者：{$vo.nname}
                                </td>
                                <td class="span6">
                                    发布时间：{$vo.time}
                                </td>
                                <td class="span2">
                                    浏览次数：{$vo.pv}
                                </td>
                            </tr>
                        </table>
                        <br/><br/>
                        <table>
                            <tr style="width:100%">
                                <td width="100%" >
                               		<div style=" width:100%;height:400px; overflow:auto;">
                                {$vo.text}
                                	</div>
                                </td>
                            </tr>
                        </table>
                    </volist>
                </div>
               </div>
              </div>
             </div>
			<p  class="navbar-text pull-right">{$page}</p>
</body>
</html>